#!/bin/bash
#source ./var
#source ./Lockunlock

source ./var
source ./Lockunlock
source ./Continue_to_ping
Optimization(){
    OPTION=$(whiptail --title "运维一键脚本-优化菜单" --menu "请选择想要优化的选项，上下键进行选择，回车即运行，左右键可选择<Cancel>返回上层！" 25 50 4 \
    "1" "Lock_file-锁定相关重要文件" \
    "2" "UnLock_file-解锁相关重要文件" \
    "3" "持续ping并将结果记录到日志" \
    "4" "Linux系统安全加固"  3>&1 1>&2 2>&3 )

    case $OPTION in
    1)
        C && Lock_file
        ;;
    2)
        C && UnLock_file
        ;;
    3)
        C && Continue_to_ping
        ;;
    4)
        C
        ;;
    *) 
        Entry_Menu_Bar
#        rm -rf $dir
#         ls /
        ;;
    esac
}

#Youhua
